<?php
	$id=$_POST['id'];
	$nama=$_POST['nama'];

	if(isset($_POST['submit'])){
		$sql="update jenis_peserta set jenis_peserta='$nama' where id_jenis_peserta=$id";
		$qry=mysql_query($sql);
	}

	$url_sukses='utama.php?module=mod_jenis_peserta';
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>